package com.yanqu.road.logic.bussiness.activity;


import com.yanqu.road.entity.retrievereward.RecoveryRewardUserData;
import com.yanqu.road.entity.retrievereward.config.RecoveryRewardParameterConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class RecoveryRewardBusiness {
    public static Map<Integer, RecoveryRewardParameterConfig> getRecoveryRewardConfigMap(int activityId){
        return DaoHelper.getRecoveryRewardParameterConfigDaoImpl().getRecoveryRewardParameterConfigMap(activityId);
    }

    public static RecoveryRewardUserData getRecoveryRewardUserData(long userId){
        return DaoHelper.getRecoveryRewardUserDataDaoImpl().getRecoveryRewardUserData(userId);
    }

    public static boolean addRecoveryRewardUserData(RecoveryRewardUserData data){
        return DaoHelper.getRecoveryRewardUserDataDaoImpl().add(data);
    }

    public static boolean updateRecoveryRewardUserData(RecoveryRewardUserData data){
        return DaoHelper.getRecoveryRewardUserDataDaoImpl().update(data);
    }
}
